﻿<phone:PhoneApplicationPage 
    x:Class="Coding4Fun.MissionControl.WP.Views.AddSetPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False"
    xmlns:tkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    DataContext="{Binding Path=Instance.CurrentServer,Source={StaticResource CommonViewModel}}">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Grid.Background>
                <ImageBrush ImageSource="/Graphics/headlogo.png" Stretch="None"></ImageBrush>
            </Grid.Background>

            <StackPanel VerticalAlignment="Center">
                <TextBlock Text="ADD SET" Style="{StaticResource PhoneTextSubtleStyle}" HorizontalAlignment="Right"></TextBlock>
                <TextBlock HorizontalAlignment="Right"  Text="{Binding Name}" Style="{StaticResource PhoneTextSubtleStyle}"></TextBlock>
            </StackPanel>
        </Grid>

        <StackPanel Grid.Row="1" Margin="12,0,12,0">
            <TextBlock Foreground="Black" Style="{StaticResource PhoneTextLargeStyle}" Text="name:"></TextBlock>
            <TextBox Style="{StaticResource TextBoxWhiteStyle}" BorderBrush="Black" x:Name="txtName" KeyDown="txtName_KeyDown"></TextBox>
            <TextBlock Foreground="Black" Style="{StaticResource PhoneTextLargeStyle}" Text="type:"></TextBlock>
            <tkit:ListPicker x:Name="lstType" BorderBrush="Black" Style="{StaticResource ListPickerWhiteStyle}">
                <tkit:ListPickerItem Content="list"></tkit:ListPickerItem>
                <tkit:ListPickerItem Content="pad"></tkit:ListPickerItem>
            </tkit:ListPicker>

        </StackPanel>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">
            <shell:ApplicationBarIconButton x:Name="btnOK" Click="btnOK_Click" IconUri="/Graphics/appbar.check.png" Text="ok"/>
            <shell:ApplicationBarIconButton x:Name="btnCancel" Click="btnCancel_Click" IconUri="/Graphics/appbar.close.rest.png" Text="cancel"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
